name="itheima is a branch of itcast"

count=0
for x in name:
    if x=='a':
        count+=1
        
print(count)
